#pragma once
#include <iostream>
#include <string>
using namespace std;


class Movie
{

private:

	string title;
	string actors;
	int playing_time;
	bool isOwner;
	bool hasSeenIt;

public:

	Movie();
	Movie(string title, string actor, int playing_time, bool isOwner, bool HasSeenIt);

	void WriteMovie();
	void ReadMovie();

	friend ostream & operator << (ostream & out, const Movie & m);
	friend istream & operator >> (istream & in, Movie & m);


	string getTitle(string t) { return t; }
	string getActors(string a) { return a; }
	int getPlaying_time(int play) { return play; }
	bool getOwner(bool o) { return o; }
	bool getSeenIt(bool s) { return s; }

	void setTitle(string t) { this->title = t; }
	void setActors(string act){ this->actors = act; }
	void setPlaying_time(int playing) { this->playing_time = playing; }
	void setOwner(bool o) { this->isOwner = o; }
	void setSeenIt(bool s){ this->hasSeenIt = s; }

	~Movie();
};

